<div class="wrapper">
    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        
        <!-- Right navbar links -->
        <ul class="navbar-nav ml-auto">
          
            <li class="nav-item">
                <button id="logoutBtn" onclick="localStorage.removeItem('token');localStorage.removeItem('loginname');router.go('/login')" class="btn btn-danger btn-sm">退出登录</button>
            </li>
        </ul>
    </nav>
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="index3.html" class="brand-link">
            <img src="/adminLTE/img/logo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
                style="opacity: .8">
            <span class="brand-text font-weight-light">尚硅谷图书管理系统</span>
        </a>

        <!-- Sidebar -->
        <div class="sidebar">
            <!-- Sidebar user panel (optional) -->
            <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img src="/adminLTE/img/logo.png" class="img-circle elevation-2" alt="User Image">
                </div>
                <div class="info" style="color:aliceblue">
                    你好！ <%= data.loginname %>
                </div>
            </div>

            <!-- Sidebar Menu -->
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                    data-accordion="false">
                    <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
                    <li class="nav-item menu-open">
                        <a href="javascript:;" class="nav-link <%= (data.url === '/index/adminlist')? 'active': '' %>" onclick="router.go('/index/adminlist')">
                            <i class="nav-icon fas fa-tachometer-alt"></i>
                            <p>
                                管理员列表 
                                <i class="right fas fa-angle-left"></i>
                            </p>
                        </a>
                    </li>
                    <li class="nav-item menu-open">
                        <a href="javascript:;" class="nav-link <%= (data.url === '/index/bookslist')? 'active': '' %>" onclick="router.go('/index/bookslist')">
                            <i class="nav-icon fas fa-tachometer-alt"></i>
                            <p>
                                图书列表
                                <i class="right fas fa-angle-left"></i>
                            </p>
                        </a>
                    </li>

                </ul>
            </nav>
            <!-- /.sidebar-menu -->
        </div>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0" id="titleH1">管理员列表</h1>
                    </div><!-- /.col -->
                    
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->

        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <%= data.subRoute %>
            </div>
        </section>
    </div>
    <!-- /.content-wrapper -->
    <footer class="main-footer">
        <strong>Copyright &copy; 2014-2021 <a href="https://adminlte.io">AdminLTE.io</a>.</strong>
        All rights reserved.
        <div class="float-right d-none d-sm-inline-block">
            <b>Version</b> 3.2.0
        </div>
    </footer>
</div>